package com.gzhryc.shared_device.cdb.api.protocol;

import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;

public class CDBHttpSearchResponse extends SecurityResponse<CDBHttpSearchResponse.Body> {

	private static final long serialVersionUID = 1L;

	public CDBHttpSearchResponse() {
		this.body = new Body();
	}

	public CDBHttpSearchResponse(Integer code) {
		super(code);
		this.body = new Body();
	}

	public CDBHttpSearchResponse(Integer code, String msg) {
		super(code,msg);
		this.body = new Body();
	}

	public static class Body implements Serializable {

		private static final long serialVersionUID = 1L;

		private Integer resultCode;
		private String errorMsg;
		private String messageId;

		public Integer getResultCode() {
			return resultCode;
		}

		public void setResultCode(Integer resultCode) {
			this.resultCode = resultCode;
		}

		public String getErrorMsg() {
			return errorMsg;
		}

		public void setErrorMsg(String errorMsg) {
			this.errorMsg = errorMsg;
		}

		public String getMessageId() {
			return messageId;
		}

		public void setMessageId(String messageId) {
			this.messageId = messageId;
		}
	}

}
